package com.zxc.service;

import com.zxc.dto.CustomerConstitute;
import com.zxc.entity.CstCustomer;

import java.util.List;

public interface CstCustomerService {
    CstCustomer selectCstCustomerById(Integer custNo);

    List<CstCustomer> getCstCustomerList(Integer skipCounts, Integer pageSize, String searchName);

    int selectCountCustomerForMarketing();

    int selectCountCustomerForCustomer();


    int updateCustomerByCustNo(CstCustomer cstCustomer);

    int delete(Integer[] custNos);

    List<CstCustomer> getCstCustomerListByConditionAndUserId(int skipCounts, Integer pageSize, String searchName, Integer userId);

    List<CstCustomer> getCstCustomerListByCondition(int skipCounts, Integer pageSize, String searchName);

    int saveCstCustomer(CstCustomer cstCustomer);

    Long selectCstCustomerByCustName(String svrCustName);


    List<CstCustomer> selectAllCustomer();

    List<CstCustomer> selectCstCustomerByCustNameForChart(String custName);

    //客户构成分析
    List<CustomerConstitute> getCustomerConstituteInit();

    //取得企业客户等级列表
    List<String> selectCustLevel();

    List<String> getCustomerByCustName(String keyword);
}
